<?php echo View::factory('admin/administrator/administrator_left')->render(); ?>
<script type="text/javascript" src="/media/js/my_validation.js"></script>
<script type="text/javascript" src="/media/js/catalog/catalog_admin.js"></script>
<script>
    $(function() {
          $( "input:submit").button();
          
           $('#back').button({
            icons:{
                primary:"ui-icon ui-icon-arrowreturnthick-1-n"
            },
            text:true
        });
    });
    </script>

<div id="do_right" >
<div class="box" style="overflow:hidden;">
    
<h3 id="h3_left">添加角色</h3><div id="right_button">
        
<a href="/admin/role/list"><button id="back">返回角色列表</button></a></div>
<div class="clear"></div>
        <form method="post" action="/admin/role/add" class="need_validation">
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">基本资料</a></li>
                  
                </ul>
                <!--START tabs-1 -->
                <div id="tabs-1">
                    <ul>
                        <li>
                            <label>所属部门</label>&nbsp;
                                <select class="drop required" name="chr_oid" id="chr_oid">
                                    <?php
                                    echo $catalog_opt == '' ? '<option value="0">--ROOT--</option>' : $catalog_opt;
                                    ?>
                                </select>
                        </li>

                        <li>
                            <label>角色名称<span class="req">*</span></label>
                                <input name="chr_rolename" id="chr_rolename" class="text datepick required" type="text" value=""/>
                        </li>
                        
                         <li>
                            <label>角色描述</label>
                            <div>
                          <textarea class="textarea" tabindex="1" cols="60" rows="6" name="chr_desc"></textarea>
                          </div>
                        </li>
                    
                        
                        <li>
                        <label>是否生效</label>&nbsp;
                            <input class="radio" type="radio" checked="checked" value="1" name="chr_status">
                                <label class="choice">是</label>
                                <input class="radio" type="radio" value="0" name="chr_status">
                                <label class="choice">否</label>
                        </li>
                        
                         

                    </ul>
                </div>
                <!--END tabs-1 -->

            </div>

            <ul>
                <li style="text-align: center;">
                    
                    <input value="添加" class="button" type="submit" />
                </li>
            </ul>
        </form>
    </div>
</div>
